<include file="../Public/_header.html" />

<div class="so_main">
	<php>if($type!='edit'){</php>
  		<div class="page_tit">添加地点</div>
  <php>}else{</php>
  		<div class="page_tit">修改地点</div>
  <php>}</php>
  <style>
  	.form2 dl{
  		float: left;
    	width: 50%;
    }
  </style>
  <div class="form2" id="main_area">
  	<form method="post" 
  		action="
  		<php>if($type!='edit'){</php>
  				{:U('/AreaPopular/doAdd')}
		  <php>}else{</php>
		  		{:U('/AreaPopular/doEdit')}
		  <php>}</php>
  	">
  	<input name="popu_id" id='popu_id' type="hidden" value="{$popular.popu_id}">
  	<div class="clear"></div>
    <dl class="lineD">
      <dt>名称：</dt>
      <dd>
        <input name="title" type="text" value="{$popular.title}">
      </dd>
    </dl>

    <dl class="lineD">
      <dt>地区：</dt>
      <dd>
        <input type="hidden" id="current" name='gparea' 
					value="{:assembleAreaIds($popular['province_id'],$popular['city_id'],$popular['area_id'])}"/>
				<!--province city area-->
				<input type="text" name="city"  id="selectarea"
					value="{:getAreaDesc($popular['province_id'],$popular['city_id'],$popular['area_id'])}"
					class="text" onfocus="this.className='text2'" onblur="this.className='text'" readonly 
					onclick="ui.box.load('{:U('Index://Public/area',array('selected'=>''))}'+$('#current').val(),{title:'选择城市'});" />
      </dd>
    </dl>
    
    <dl class="lineD">
      <dt>总数：</dt>
      <dd>
        <input name="item_sum" type="text" value="{$popular.item_sum}" title="相关店铺总数">
      </dd>
    </dl>
    
    <div class="clear"></div>
    <div class="page_btm" style="padding: 18px 0 18px 0;text-align: center;">
      <input type="submit" class="btn_b" value="提交" />
    </div>
    </form>
  </div>

</div>
<include file="../Public/_footer.html" />